import httpInstance from '@/network/requestConfig'


export function createOrderData(data) {
    return httpInstance({
        url:'/order/',
        method:"post",
        data
    })
}


// 这里写错了，应该叫getAllOrders
export function getAddOrders(data) {
    return httpInstance({
        url:'/order',
        method:'get',
        params:{
            pay_status:data
        }
    })
}


export function getAllOrdersByTrandeNo(data) {
    return httpInstance({
        url:'/order/goods/' + data,
        method:'get'
    })
}


export function updateOrderInfoData(data) {
    return httpInstance({
        url:'/order/update/',
        method:'post',
        data
    })
}


export function toAliPayPage(data) {
    return httpInstance({
        url:'/pay/alipay/',
        method:"post",
        data
    })
}


